wxapp.Test.share = function() {
    wx.shareAppMessage({
        title: "要购物就来途游捕鱼赢京东卡，轻松好礼拿回家!",
        imageUrl: "https://apk.dl.tuyoo.com/down/buyu/fishweixinshare9.jpg",
        query: "key1=lala&key2=kaka",
        success: function(e) {
            e.shareTickets && wx.getShareInfo({
                shareTicket: e.shareTickets[0],
                success: function(e) {},
                fail: function(e) {}
            });
        },
        fail: function(e) {}
    });
}, wxapp.Test.shareImage = function() {
    var e = wx.createCanvas();
    e.width = 360, e.height = 288;
    var t = e.getContext("2d"), i = wx.createImage();
    i.src = "https://apk.dl.tuyoo.com/down/buyu/fishweixinshare9.jpg", i.originPointX = 0, 
    i.originPointY = 0, i.onload = function(i) {
        i.target;
        t.save(), t.fillStyle = "red", t.fillRect(10, 10, 150, 75), t.restore(), t.fillRect(50, 50, 150, 75);
        t.font = "20px Arial", t.fillStyle = "#feff99", t.textAlign = "center", t.fillText("Hello World!你好", 100, 80);
        var a = e.toTempFilePathSync({
            x: 0,
            y: 0,
            width: 360,
            height: 288,
            destWidth: 360,
            destHeight: 288
        });
        wx.shareAppMessage({
            title: "自绘Image!",
            imageUrl: a,
            query: "key1=lala&key2=kaka",
            success: function(e) {},
            fail: function(e) {}
        });
    };
};